package com.aioz.security.mapper;

import com.aioz.security.entity.Application;
import com.aioz.security.entity.dto.ApplicationDto;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Aioz
 * @since 2022-09-28
 */
@Repository
public interface ApplicationMapper extends BaseMapper<Application> {

    List<ApplicationDto> queryAllApplications();

    List<ApplicationDto> getOwnById(Long userId);

    List<ApplicationDto> getApplicationByCompanyId(Integer companyId);

    List<ApplicationDto> getApplicationByUsername(Integer companyId,String username);

}
